<?php
     $servername = "47.115.11.83";
     $username = "root";
     $password = "GXyinongle01";
     $dbname = "choujiang";
     // 创建连接
     $conn_insert = new mysqli($servername, $username, $password, $dbname);
     // Check connection
     $conn_insert->query("SET NAMES utf8");
     if ($conn_insert->connect_error) {
         die("连接失败: " . $conn_insert->connect_error);
     }
     $name=$_POST['name'];
     $phone=$_POST['phone'];
     $prize=$_POST['prize'];
     $sql_insert = " INSERT INTO luckylist ( username, phone,prize ) VALUES ( '$name','$phone','$prize') ";
     $conn_insert->query($sql_insert);
     $conn_insert->close();
     exit();
?>